﻿using System.Collections.ObjectModel;
using Reflector.CodeModel;

namespace CallGraphExtractor.CecilAdapter
{
    class FieldDeclarationCollection : Collection<IFieldDeclaration>, IFieldDeclarationCollection
    {
        #region Lifecycle

        public FieldDeclarationCollection(Mono.Collections.Generic.Collection<Mono.Cecil.FieldDefinition> collection)
        {
            foreach (var item in collection)
            {
                this.Add(new FieldDeclaration(item));
            }
        }

        #endregion Lifecycle

        #region IFieldDeclarationCollection Members

        public void AddRange(System.Collections.ICollection fieldDeclarations)
        {
            throw new System.NotImplementedException();
        }

        public new void Remove(IFieldDeclaration fieldDeclaration)
        {
            throw new System.NotImplementedException();
        }

        #endregion
    }
}
